package com.xinchen.quartz.core.test.JobStoreDemo;

import org.apache.log4j.Logger;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Description：
 *
 * @author Xin Chen
 * @version 1.0
 * @date 2016/12/14 17:44
 * @see 2016/12/14 17:44 Created
 ****************************************/
public class JobStoreJob implements Job {
    private static final Logger logger = Logger.getLogger(JobStoreJob.class);
    public void execute(JobExecutionContext context) throws JobExecutionException {
        logger.info("Hello quzrtz  "+ new SimpleDateFormat("yyyy-MM-dd HH:mm:ss ").format(new Date()));
    }
}
